package com.qfedu.service;

import com.qfedu.entity.Room;
import com.qfedu.vo.ResultVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoomService {

    /**
     * 根据房源ID查询 房源信息
     * @param rid
     * @return
     */
    Room getRoomByRid(Integer rid) throws Exception;


    /**
     * 根据城市Id查询房源
     * @param cid
     * @return  List<Room>
     */
    ResultVo selectRoomByCityId(Integer cid);


    ResultVo selectRoomByCondition(Integer cid,
                                   Integer pcount,
                                   Double maxPrice,
                                   Double minPrice,
                                   String leaseType,
                                   Integer hid,
                                   Double grade,
                                   Integer start,
                                   Integer end);

}
